Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auth #29

Merged
merged 6 commits into from
Nov 10, 2024
Merged

Add auth #29

merged 6 commits into from
Nov 10, 2024

Conversation

AmirAgassi
Copy link
Member

No description provided.

@AmirAgassi AmirAgassi requested a review from aidantrabs November 8, 2024 05:13
@AmirAgassi AmirAgassi self-assigned this Nov 8, 2024
Copy link

github-actions bot commented Nov 8, 2024

Test Results

Tests: failure

Workflow triggered by @AmirAgassi, ran on Linux

Copy link
Member

@aidantrabs aidantrabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uuid stuff -> google vs pgtype

@KonferCA KonferCA deleted a comment from github-actions bot Nov 9, 2024
@KonferCA KonferCA deleted a comment from github-actions bot Nov 9, 2024
Copy link

github-actions bot commented Nov 9, 2024

Test Results

Tests: failure

Workflow triggered by @AmirAgassi, ran on Linux

@KonferCA KonferCA deleted a comment from github-actions bot Nov 9, 2024
return echo.NewHTTPError(http.StatusInternalServerError, "failed to create user")
}

userID := convert.UUIDToString(user.ID)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why is this needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

func generateJWT(userID string, role string) (string, error)

based on his function definition, he changed the UUID to a string to pass it in

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ lol

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiiit so like the UUID type is not just an alias to a string? thats dumb

@aidantrabs
Copy link
Member

why is the action failing?

@AmirAgassi
Copy link
Member Author

why is the action failing?

it's expecting to connect to the PostgreSQL db, but that isn't implemented in the github action workflow yet 😞

@juancwu
Copy link
Contributor

juancwu commented Nov 10, 2024

I am working on updating the workflow

Copy link

Test Results

Tests: failure

Workflow triggered by @AmirAgassi, ran on Linux

@AmirAgassi AmirAgassi merged commit 9958daa into main Nov 10, 2024
1 check failed
@aidantrabs aidantrabs deleted the add-auth branch November 10, 2024 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants